﻿<!--
	@create by 
	@update by 
	@description 
-->
<div>
    <h3>任务配置</h3>
	<el-form-q :field-data="taskQueryFields" :buttons="taskQueryButtons"></el-form-q>
  <div class="yu-toolBar">
    <el-button-group>
      <el-button icon="plus" @click="addTaskFn" v-if="checkPermission('create')">新增</el-button>
      <el-button icon="edit" @click="modifyTaskFn" v-if="checkPermission('edit')">修改</el-button>
      <el-button icon="document" @click="infoTaskFn" >查看</el-button>
      <el-button icon="yx-bin" @click="deleteTaskFn" v-if="checkPermission('delete')">删除</el-button>
    </el-button-group>
  </div>
  <el-table-x ref="taskTable" :row-index="true" :radiobox="false" :base-params="taskBaseParams"
        :data-url="taskDataUrl" :table-columns="taskTableColumns" :request-type="'POST'"></el-table-x>
  <!-- 说明dialog可配置宽高属性，若不配置则宽度默认为屏幕50%，高度自适应
     width="650px" height="380px" -->
  <el-dialog-x :title="viewTitle[taskViewType]" :visible.sync="taskDialogVisible" size="full">
    <el-form-x ref="taskForm"
           :group-fields="taskUpdateFields" :buttons="taskUpdateButtons"
           :disabled="taskFormDisabled" label-width="140px"></el-form-x>
     <br />
     <el-table ref="paramTable" :data="mainGrid.data" v-loading="mainGrid.loading"
                stripe border fit highlight-current-row element-loading-text="加载中...">
       
        <!-- <el-table-column label="业务参数代码">
            <template scope="scope">
                <span>{{ scope.row.bizParamCode }}</span>
            </template>
        </el-table-column> -->
          <el-table-column label="业务参数">
            <template scope="scope">
                <el-input v-show="!taskFormDisabled" size="small" v-model="scope.row.bizTargetParamCode"></el-input>
                <span v-show="taskFormDisabled">{{ scope.row.bizTargetParamCode }}</span>
            </template>
        </el-table-column>
        <el-table-column label="业务参数名称" width="100">
            <template scope="scope">
                <span>{{ scope.row.bizParamName }}</span>
            </template>
        </el-table-column>
       <!--  <el-table-column label="业务插件标识" v-show="false">
            <template scope="scope">
                <span>{{ scope.row.bizPluginId }}</span>
            </template>
        </el-table-column> -->
        <el-table-column label="业务参数类型">
            <template scope="scope">
                <!-- <span>{{ scope.row.bizParamIo }}</span> -->
                <span>{{ paramType[scope.row.bizParamIo] }}</span>
            </template>
        </el-table-column>
      <!--   <el-table-column label="入参顺序号">
            <template scope="scope">
                <span>{{ scope.row.inParamOrder }}</span>
            </template>
        </el-table-column> -->
        <el-table-column label="入参类型">
            <template scope="scope">
                <span>{{ scope.row.paramClass }}</span>
            </template>
        </el-table-column>
     </el-table>
  </el-dialog-x>
</div>
